home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / HyperCard / HyperCard 1.2.2 International / HyperCard Italian (T-1.2.2) / Stack Principali / Note di Rilascio (1.2.2) / Note di Rilascio (1.2.2) / card_10710.txt < prev    next >
Text File  |  1988-12-01  |  2KB  |  84 lines

  1. -- card: 10710 from stack: in.2)
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: selectedText
  6. ----- HyperTalk script -----
  7. on cleanEnter
  8.   set cursor to watch
  9.   send "mouseUp" to bg btn "Vedi Anche"
  10. end cleanEnter
  11.  
  12. on cleanExit
  13.   send "mouseup" to bg btn "Demo"
  14. end cleanExit
  15.  
  16.  
  17.  
  18. -- part contents for background part 7
  19. ----- text -----
  20. selectedText
  21.  
  22. -- part contents for background part 9
  23. ----- text -----
  24. Nuove Funzioni HyperTalk
  25. Scheda 10 su 10
  26.  
  27.  
  28. -- part contents for background part 8
  29. ----- text -----
  30. the selectedText
  31.  
  32. -- part contents for background part 10
  33. ----- text -----
  34. nessuno
  35.  
  36. -- part contents for background part 11
  37. ----- text -----
  38. Questa funzione fornisce il testo correntemente selezionato.  Ha lo stesso effetto di ‚Äúthe selection.‚Äù  Nota, comunque, che ‚Äúthe selection‚Äù √® una variabile (per esempio, puoi mettere del testo in essa);  the selectedText √® solo una funzione.  Se niente √® selezionato, the selectedText ritorna una stringa vuota.
  39.  
  40.  
  41.  
  42.  
  43. -- part contents for background part 31
  44. ----- text -----
  45. Nuovi Sinonimi
  46. Select
  47. selectedChunk
  48. selectedField
  49. selectedLine
  50.  
  51.  
  52. -- part contents for background part 17
  53. ----- text -----
  54. --dopo l'esecuzione di questi comandi
  55. select line 4 of fld "indirizzo"
  56. put the selectedText
  57.  
  58. --potresti vedere questo risultato:
  59. 97015 Modica, Rg
  60.  
  61. --nota la differenza fra the Selection e
  62. --the selectedText:
  63.  
  64. get the selection  -- Corretto
  65. get the selectedText -- Corretto
  66. put "Sostituzione" into selection -- Corretto
  67. put "Sostituzione" into selectedText --SBAGLIATO
  68.  
  69. -- part contents for background part 18
  70. ----- text -----
  71. on selectedTextDemo
  72. --seleziona una linea da "Vedi Anche", va alla
  73. --scheda con quel nome, e ritorna:
  74.  
  75.    cleanEnter -- nel programma della scheda
  76.    select line 1 of field id 31 -- "Vedi Anche"
  77.    wait 1 second
  78.    get the selectedText
  79.    visual effect dissolve to black
  80.    go card it
  81.    wait 2 seconds
  82.    go back
  83.    cleanExit -- nel programma della scheda
  84. end selectedTextDemo